package _15_generics._15_12;

/**
 * 自限定泛型 将产生确切的导出类型作为其返回值
 */
public class _05_GenericAndReturnTypes {
    void test(Getter g){
        Getter getter = g.get();
        GenericGetter gg = g.get();
    }
}

interface GenericGetter<T extends GenericGetter> {
    T get();
}

interface Getter extends GenericGetter<Getter> {
}
